@extends('web.frame_layout')
<?php $parent_menu = "我的主页"; $menu_selected = "";?>
@section('content')
    <div class="m-right-nr">
        <div class="row">
            <div class="col-sm-8 col-xs-12 m-dt">
                <h2><i class="iconfont icon-purse"></i><span>最新钱包动态</span></h2>
                <div class="row u-qb">
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/1.png')}}" alt="">
                            <h3>奖金币</h3>
                            <p class="u-lan">￥{{$user->wallet->w1}}</p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/2.png')}}" alt="">
                            <h3>报单币</h3>
                            <p class="u-hong">￥{{$user->wallet->w2}}</p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center u-cw"><a href="###">
                            <img src="{{asset('web/img/3.png')}}" alt="">
                            <h3>积分分红<span class="u-lv">（满仓中）</span></h3>
                            <p class="u-lv">￥{{$user->score->a_count}}</p>
                            <h6>仓位线：283500</h6>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/4.png')}}" alt="">
                            <h3>购物币</h3>
                            <p class="u-zi">￥{{$user->wallet->w3}}</p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/5.png')}}" alt="">
                            <h3>今日奖金币</h3>
                            <p class="u-fen">￥1314.00</p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/6.png')}}" alt="">
                            <h3>重销积分</h3>
                            <p class="u-lv">￥6345.54</p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/7.png')}}" alt="">
                            <h3>增值钱包</h3>
                            <p class="u-lan">￥0.00</p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/8.png')}}" alt="">
                            <h3>电子股钱包</h3>
                            <p class="u-fen">￥0.00</p>
                        </a></div>
                </div>
            </div>
            <div class="col-sm-4 col-xs-12 m-gg">
                <div>
                    <h2><i class="iconfont icon-weibiaoti9"></i>最新系统公告
                        <a href="{{route('web.news',['flag'=>1])}}" style="float: right;padding-right: 18px;">阅读更多</a>
                    </h2>
                    <div>
                        <ul>
                            @foreach($notices as $notice)
                                <li><a href="###">
                                        <span class="u-tz">{{$notice->title}}</span>
                                        <span class="u-time">{{date('Y-m-d',$notice->time)}}</span>
                                        <span class="u-djck" onclick="contentDlg(1, {{$notice->id}})">点击查看</span>
                                    </a></li>
                            @endforeach
                        </ul>
                    </div>
                </div>
            </div>
            <div class="col-sm-8 col-xs-12 m-sp">
                <div class="row u-cp">
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="#">
                            <img src="{{asset('web/img/sp.png')}}" alt="">
                            <h3>智能摄像机 看店宝 D688 高清红外夜视</h3>
                            <p><span class="u-fen">￥149.00</span><s class="u-s">￥199.00</s></p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/sp.png')}}" alt="">
                            <h3>智能摄像机 看店宝 D688 高清红外夜视</h3>
                            <p><span class="u-fen">￥149.00</span><s class="u-s">￥199.00</s></p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/sp.png')}}" alt="">
                            <h3>智能摄像机 看店宝 D688 高清红外夜视</h3>
                            <p><span class="u-fen">￥149.00</span><s class="u-s">￥199.00</s></p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/sp.png')}}" alt="">
                            <h3>智能摄像机 看店宝 D688 高清红外夜视</h3>
                            <p><span class="u-fen">￥149.00</span><s class="u-s">￥199.00</s></p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/sp.png')}}" alt="">
                            <h3>智能摄像机 看店宝 D688 高清红外夜视</h3>
                            <p><span class="u-fen">￥149.00</span><s class="u-s">￥199.00</s></p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/sp.png')}}" alt="">
                            <h3>智能摄像机 看店宝 D688 高清红外夜视</h3>
                            <p><span class="u-fen">￥149.00</span><s class="u-s">￥199.00</s></p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/sp.png')}}" alt="">
                            <h3>智能摄像机 看店宝 D688 高清红外夜视</h3>
                            <p><span class="u-fen">￥149.00</span><s class="u-s">￥199.00</s></p>
                        </a></div>
                    <div class="col-md-4 col-xs-6 col-lg-3 text-center"><a href="###">
                            <img src="{{asset('web/img/sp.png')}}" alt="">
                            <h3>智能摄像机 看店宝 D688 高清红外夜视</h3>
                            <p><span class="u-fen">￥149.00</span><s class="u-s">￥199.00</s></p>
                        </a></div>
                </div>
            </div>
            <div class="col-sm-4 col-xs-12 m-mine">
                <div>
                    <h2><i class="iconfont icon-yonghuxinxi"></i>我的基本信息</h2>
                    <ul>
                        <li><span>会员名称：</span><strong>{{$user->username}}</strong></li>
                        <li><span>真实姓名：</span><strong>{{empty($user->realname)?'无':$user->realname}}</strong></li>
                        <li>
                            <span>会员级别：</span><strong>{{isset(\App\VModels\VVip::vipBySlug($user->vip_slug)->name)?\App\VModels\VVip::vipBySlug($user->vip_slug)->name:''}}
                            </strong></li>
                        <li><span>推荐人数：</span><strong>{{$user->child_num}} 人</strong></li>
                        <li><span>直接报单人数：</span><strong>{{\App\Utils\TreeUtil::getBdUsersByUser($user)->count()}}
                                人</strong></li>
                        <li><span>团队业绩：</span><strong>{{$user->score->a_count + $user->score->b_count}}</strong></li>
                        <li class="u-lastLi">
                            <span>是否为报单中心：</span>
                            <strong>
                                @if($user->bdzx_status == \App\Models\MUser::$BDZX_YES)
                                    报单中心
                                @else
                                    否
                                @endif
                            </strong>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
@endsection
@section('footer')
    @include('web.coms.content-dialog')
@endsection